package com.rundow.driver.opc.da.factory;

import com.rundow.common.base.utils.ApplicationContextUtil;
import com.rundow.common.sdk.factory.ServiceContainerFactory;
import com.rundow.common.sdk.service.DriverCommandService;
import com.rundow.common.sdk.service.DriverCustomService;
import com.rundow.common.sdk.service.DriverScheduleService;

public class OpcDAFactory implements ServiceContainerFactory {
    @Override
    public DriverCustomService createDriverCustomService() {
        final DriverCustomService opcdaDriverCustomService =(DriverCustomService) ApplicationContextUtil.getBean("opcdaDriverCustomService");
        return opcdaDriverCustomService;
    }

    @Override
    public DriverCommandService createdriverCommandService() {
        final DriverCommandService opcdaDriverCommandService =(DriverCommandService) ApplicationContextUtil.getBean("opcdaDriverCommandService");
        return opcdaDriverCommandService;
    }

    @Override
    public DriverScheduleService createdriverScheduleService() {
        final DriverScheduleService opcdaDriverScheduleService =(DriverScheduleService) ApplicationContextUtil.getBean("opcdaDriverScheduleService");
        return opcdaDriverScheduleService;
    }
}
